<template>
  <div class="person">

  </div>
</template>

<script lang="ts" setup name="Person">
   import {type PersonInter}from '@/types'

 // let person:PersonInter={
 //     id:1,
 //     name:'张三',
 //     age:18,
 //   }

   let personList:Array<PersonInter>=[
     { id:1,name:'张三',age:18},
     { id:2,name:'李四',age:19},
     { id:3,name:'王五',age:20},
   ]
   console.log(personList)
</script>

<style>
.person {
  background-color: burlywood;
  box-shadow: 0 0 10px;
  border-radius: 10px;
  padding: 10px;
  color: black; /* 设置字体颜色为黑色 */
}
</style>
